package com.fr.report.io.pdf;

import com.fr.base.core.ComparatorUtils;
import java.awt.TexturePaint;

public class TexturePaintEquals
{
  private TexturePaint texturePaint;

  public TexturePaintEquals(TexturePaint paramTexturePaint)
  {
    this.texturePaint = paramTexturePaint;
  }

  public TexturePaint getTexturePaint()
  {
    return this.texturePaint;
  }

  public void setTexturePaint(TexturePaint paramTexturePaint)
  {
    this.texturePaint = paramTexturePaint;
  }

  public boolean equals(Object paramObject)
  {
    if (!(paramObject instanceof TexturePaintEquals))
      return false;
    return texturePaintEquals(this.texturePaint, ((TexturePaintEquals)paramObject).getTexturePaint());
  }

  private boolean texturePaintEquals(TexturePaint paramTexturePaint1, TexturePaint paramTexturePaint2)
  {
    if ((paramTexturePaint1 == null) || (paramTexturePaint2 == null))
      return ((paramTexturePaint1 == null) && (paramTexturePaint2 == null));
    return ((ComparatorUtils.equals(paramTexturePaint1.getAnchorRect(), paramTexturePaint1.getAnchorRect())) && (ComparatorUtils.equals(paramTexturePaint1.getImage(), paramTexturePaint1.getImage())));
  }
}